import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    // 登录界面弹窗
    loginIsShow:false,
    // 确认信息弹窗/通知信息弹窗
    infoWindow :false,
    // 界面显示的是登录还是购物车
    shoppingCartOrLogin:false,
    // nav 中被选中的是谁
    isChose : 0,
  },
  getters: {
  },
  mutations: {
    changeLoginIsShow(state,req){
      state.loginIsShow = req
    },
    changeInfoWindow(state,req){
      state.infoWindow = req
    },
    changeShoppingCartOrLogin(state,req){
      state.shoppingCartOrLogin = req
    },
    changeIsChose(state,req){
      state.isChose = req
    }
  },
  actions: {
  },
  modules: {
  }
})
